package com.flyme.common.prism.api;

/**
 * {"recordsTotal":1,"recordsFiltered":1,"draw":5,"data":[{"registId":11238,"name":"mmcdfds.loan.createOrder","beanId":"loanOrderBasicServiceImpl","descipt":"金融分销创建订单-test","connectionTimeOut":-1,"readTimeOut":-1,"needResult":1,"methodName":"createOrder","code":"uc","map":null}]}
 */
public class ServiceModel {
    private Long registId;
    private String name;
    private String beanId;
    private String descipt;
    private int needResult;
    private String methodName;

    public String getBeanId() {
        return beanId;
    }

    public void setBeanId(String beanId) {
        this.beanId = beanId;
    }

    public String getDescipt() {
        return descipt;
    }

    public void setDescipt(String descipt) {
        this.descipt = descipt;
    }

    public int getNeedResult() {
        return needResult;
    }

    public void setNeedResult(int needResult) {
        this.needResult = needResult;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Long getRegistId() {
        return registId;
    }

    public void setRegistId(Long registId) {
        this.registId = registId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ServiceModel that = (ServiceModel) o;

        if (needResult != that.needResult) return false;
        if (!name.equals(that.name)) return false;
        if (!beanId.equals(that.beanId)) return false;
        if (!descipt.equals(that.descipt)) return false;
        return methodName.equals(that.methodName);
    }

    @Override
    public int hashCode() {
        int result = name.hashCode();
        result = 31 * result + beanId.hashCode();
        result = 31 * result + descipt.hashCode();
        result = 31 * result + needResult;
        result = 31 * result + methodName.hashCode();
        return result;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ServiceModel{");
        sb.append("registerId=").append(registId);
        sb.append(", name='").append(name).append('\'');
        sb.append(", beanId='").append(beanId).append('\'');
        sb.append(", descipt='").append(descipt).append('\'');
        sb.append(", needResult=").append(needResult);
        sb.append(", methodName='").append(methodName).append('\'');
        sb.append('}');
        return sb.toString();
    }
}